<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Test Application - <?php echo $this->layout->title; ?></title>
        <link type="text/css" rel="stylesheet" href="<?php echo asset('css/bootstrap.min.css'); ?>" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo asset('js/bootstrap.min.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo asset('js/jquery.maskedinput.min.js'); ?>"></script>
    </head>
  <body>
        <header>
            <nav class="navbar navbar-default navbar-static-top">
                <div class="container-fluid">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="/index.php">Test Application</a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li <?php if (isRoute('group', 'groups')): ?>class="active"<?php endif; ?>><a href="<?php echo url('group/groups'); ?>">Groups</a></li>
                        <li <?php if (isRoute('user', 'users')): ?>class="active"<?php endif; ?>><a href="<?php echo url('user/users'); ?>">Users</a></li>
                    </ul>
                </div>
            </nav>
        </header>
        <main>
            <?php if ( ! isRoute('index', 'index')): ?>
                <ol class="breadcrumb" style="margin-top:-20px;">
                    <li><a href="<?php echo url(''); ?>">Home Page</a></li>
                    <?php if (isRoute('group', 'groups') ): ?>
                        <li class="active">Groups</li>
                    <?php endif; ?>
                        
                    <?php if (isRoute('group', 'add') ): ?>
                        <li><a href="<?php echo url('group/groups'); ?>">Groups</a></li>
                        <li class="active">Add Group</li>
                    <?php endif; ?>
                    <?php if (isRoute('group', 'edit') ): ?>
                        <li><a href="<?php echo url('group/groups'); ?>">Groups</a></li>
                        <li class="active">Edit Group</li>
                    <?php endif; ?>
                        
                    <?php if (isRoute('user', 'users') ): ?>
                        <li class="active">Users</li>
                    <?php endif; ?>
                    <?php if (isRoute('user', 'add') ): ?>
                        <li><a href="<?php echo url('user/users'); ?>">Users</a></li>
                        <li class="active">Add User</li>
                    <?php endif; ?>
                    <?php if (isRoute('user', 'edit') ): ?>
                        <li><a href="<?php echo url('user/users'); ?>">Users</a></li>
                        <li class="active">Edit User</li>
                    <?php endif; ?>
                </ol>
            <?php endif; ?>
            <div class="container-fluid">
                <?php echo $this->layout->content; ?>
            </div>
        </main>
<!--        <footer>
            <div class="container-fluid">
                <p class="text-muted">Place sticky footer content here.</p>
            </div>
        </footer>-->
  </body>
</html>